package com.itheima.mp.enumeration;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Data;
import lombok.Getter;
import org.springframework.beans.factory.annotation.Autowired;
@Getter
public enum UserStatus {
    NORMAL(1,"正常"),
    FROZE(2,"冻结")
    ;
    @EnumValue
    private final Integer status;
    @JsonValue
    private final String desc;

    UserStatus(Integer status, String desc) {
        this.status = status;
        this.desc = desc;
    }
}
